<!-- 选择职位页面 -->
<template>
  <div class="application-navbar">
    <van-nav-bar fixed left-arrow placeholder title="选择职位" @click-left="onClickLeft()" />
    <div class="selectJob">
      <div v-for="(item, idx) in jobList" :key="idx" class="jobOnce" @click="selectJob(item)">
        <div class="left">
          <img :src="item.img" alt="" />
        </div>
        <div class="jobDescribe">
          <div>{{ item.name }}</div>
          <div>{{ item.title }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      jobList: [
        { name: '前端', title: '开发工程师', img: '../../static/info/img1.png' },
        { name: 'JAVA', title: '开发工程师', img: '../../static/info/img2.png' },
        { name: '运维', title: '运维工程师', img: '../../static/info/img3.png' },
        { name: 'UI', title: '设计师', img: '../../static/info/img4.png' },
      ],
    }
  },
  methods: {
    // 返回上一级
    onClickLeft() {
      uni.navigateBack() // 直接使用 navigateBack
    },
    selectJob() {
      uni.navigateTo({
        url: '/package-guest/pages/info-regist/info-write/index',
      })
    },
  },
}
</script>
  <style lang="scss" scoped>
  .application-navbar{
    width:100%;
    height:200px;
    margin-top: 10px;
    .selectJob{
        width: 93%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .jobOnce{
            width: 48%;
            height: 62px;
            display: flex;
            box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.06);
            border-radius: 2px;
            margin-bottom:13px;
            .left{
                width: 30%;
                display: flex;
                align-items: center;
                justify-content: center;
                img{
                    width: 32px;
                    height: 32px;
                }
            }
            .jobDescribe{
                width: 70%;
                display: flex;
                flex-flow: column;
                justify-content: center;
            }
        }
    }
  }
    </style>
